gtk4.git
5 years agogtk-demo: Visual improvement to solitaire
Matthias Clasen [Wed, 12 Aug 2020 03:03:31 +0000 (23:03 -0400)]
gtk-demo: Visual improvement to solitaire

Make the fields visible.

5 years agogtk-demo: Add a layout manager demo
Matthias Clasen [Wed, 12 Aug 2020 01:14:05 +0000 (21:14 -0400)]
gtk-demo: Add a layout manager demo

This is more or less a copy of the layout manager
example from clutter.

5 years agoAdd sizes to toplevelsize warnings
Matthias Clasen [Tue, 11 Aug 2020 01:31:49 +0000 (21:31 -0400)]
Add sizes to toplevelsize warnings

Might as well be informative while we're annoying.

5 years agogtk-demo: Drop the pixbufs demo
Matthias Clasen [Tue, 11 Aug 2020 20:26:04 +0000 (16:26 -0400)]
gtk-demo: Drop the pixbufs demo

It is from a different era, and doesn't show
the apis we want to promote. The visuals live
on, in the Css/Animated Backgrounds demo.

5 years agoMerge branch 'wip/smcv/roaring-license' into 'master'
Matthias Clasen [Tue, 11 Aug 2020 16:02:25 +0000 (16:02 +0000)]
Merge branch 'wip/smcv/roaring-license' into 'master'

Add attribution and licensing information for "roaring bitmaps" code

See merge request GNOME/gtk!2408

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Tue, 11 Aug 2020 15:58:16 +0000 (15:58 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'afranke-master-patch-25531' into 'master'
Timm Bäder [Tue, 11 Aug 2020 14:26:23 +0000 (14:26 +0000)]
Merge branch 'afranke-master-patch-25531' into 'master'

Fix a string

See merge request GNOME/gtk!2428

5 years agoFix a string
Alexandre Franke [Tue, 11 Aug 2020 14:05:58 +0000 (14:05 +0000)]
Fix a string

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Mon, 10 Aug 2020 22:29:47 +0000 (22:29 +0000)]
Update Turkish translation

5 years agoMerge branch 'button-claim-clicks' into 'master'
Matthias Clasen [Mon, 10 Aug 2020 22:24:50 +0000 (22:24 +0000)]
Merge branch 'button-claim-clicks' into 'master'

button: Claim click events

Closes #3054

See merge request GNOME/gtk!2425

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 10 Aug 2020 21:45:09 +0000 (21:45 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3058

See merge request GNOME/gtk!2427

5 years agogtk-demo: Give the video player a default size
Matthias Clasen [Mon, 10 Aug 2020 02:34:17 +0000 (22:34 -0400)]
gtk-demo: Give the video player a default size

5 years agogtk-demo: Add a file filter for the video player
Matthias Clasen [Mon, 10 Aug 2020 02:27:32 +0000 (22:27 -0400)]
gtk-demo: Add a file filter for the video player

We are only interested in video files here.

5 years agowindow: Fix an oversight
Matthias Clasen [Mon, 10 Aug 2020 14:51:47 +0000 (10:51 -0400)]
window: Fix an oversight

Commit 658719a205bfcf moved the call to
gtk_window_compute_default_size() outside the
if (priv->needs_default_size)
but unfortunately, that function cleared that field,
so we never entered the branch.

Keep the setting of priv->needs_default_size in the
branch, where it belongs.

5 years agogtk-demo: Make the image demo more robust
Matthias Clasen [Mon, 10 Aug 2020 20:35:56 +0000 (16:35 -0400)]
gtk-demo: Make the image demo more robust

Make sure we don't crash if the demo is closed
early.

Fixes: #3058
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 10 Aug 2020 17:46:37 +0000 (17:46 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2426

5 years agogtk-demo: Give the video player a default size
Matthias Clasen [Mon, 10 Aug 2020 02:34:17 +0000 (22:34 -0400)]
gtk-demo: Give the video player a default size

5 years agogtk-demo: Add a file filter for the video player
Matthias Clasen [Mon, 10 Aug 2020 02:27:32 +0000 (22:27 -0400)]
gtk-demo: Add a file filter for the video player

We are only interested in video files here.

5 years agowindow: Fix an oversight
Matthias Clasen [Mon, 10 Aug 2020 14:51:47 +0000 (10:51 -0400)]
window: Fix an oversight

Commit 658719a205bfcf moved the call to
gtk_window_compute_default_size() outside the
if (priv->needs_default_size)
but unfortunately, that function cleared that field,
so we never entered the branch.

Keep the setting of priv->needs_default_size in the
branch, where it belongs.

5 years agobutton: Claim click events
Matthias Clasen [Mon, 10 Aug 2020 02:58:22 +0000 (22:58 -0400)]
button: Claim click events

This fixes issues with double activation on clicks.

Fixes: #3054
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 10 Aug 2020 01:10:41 +0000 (01:10 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gtk-demo: Add a little extra in peg solitaire

Closes #3051

See merge request GNOME/gtk!2424

5 years agoprint-editor: Icon credits
Matthias Clasen [Mon, 10 Aug 2020 00:30:00 +0000 (20:30 -0400)]
print-editor: Icon credits

Give the artist credits.

5 years agonode-editor: Don't install the icon
Matthias Clasen [Mon, 10 Aug 2020 00:28:56 +0000 (20:28 -0400)]
node-editor: Don't install the icon

We don't want to install an icon if we're not
installing the app. Also give the artist credit.

Fixes: #3051
5 years agogtk-demo: Add a little extra in peg solitaire
Matthias Clasen [Sun, 9 Aug 2020 22:59:29 +0000 (18:59 -0400)]
gtk-demo: Add a little extra in peg solitaire

A win needs to be celebrated!

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 9 Aug 2020 22:46:50 +0000 (22:46 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3027

See merge request GNOME/gtk!2423

5 years agogtk-demo: Finish peg solitaire demo
Matthias Clasen [Sun, 9 Aug 2020 22:27:18 +0000 (18:27 -0400)]
gtk-demo: Finish peg solitaire demo

The restart button was simply not implemented.
While we are at it, make the pegs a bit bigger,
so clicking them is easier.

5 years agogtk-demo: Cosmetic fixes to the textmask demo
Matthias Clasen [Sun, 9 Aug 2020 22:05:27 +0000 (18:05 -0400)]
gtk-demo: Cosmetic fixes to the textmask demo

Make this come up with the right size.

5 years agogtk-demo: Cosmetic fixes for the fontrendering demo
Matthias Clasen [Sun, 9 Aug 2020 22:02:04 +0000 (18:02 -0400)]
gtk-demo: Cosmetic fixes for the fontrendering demo

Make this look a bit less thrown together.

5 years agogtk-demo: Dark theme support for dnd demo
Matthias Clasen [Sun, 9 Aug 2020 21:36:41 +0000 (17:36 -0400)]
gtk-demo: Dark theme support for dnd demo

Add minimal dark theme support to the dnd demo,
by picking suitable default colors for our items.

5 years agogtk-demo: Cosmetic improvements to the expander demo
Matthias Clasen [Sun, 9 Aug 2020 20:46:38 +0000 (16:46 -0400)]
gtk-demo: Cosmetic improvements to the expander demo

Set the textview up like our other readonly textviews.

Also sneak in a little easter egg.

5 years agogtk-demo: Add warnings to the themes demo
Matthias Clasen [Sun, 9 Aug 2020 20:36:00 +0000 (16:36 -0400)]
gtk-demo: Add warnings to the themes demo

Add a warning that the flickering here may be
hazardous to photosensitive viewers.

5 years agowayland: Don't send invalid anchor rectangles
Matthias Clasen [Sun, 9 Aug 2020 20:00:19 +0000 (16:00 -0400)]
wayland: Don't send invalid anchor rectangles

When we send an anchor rectangle with a width or
height of 0, mutter reponds with "Invalid anchor
rectangle size". So, don't do that.

This was seen as sudden disappearance of gtk4-demo
when you click the fishbowl benchmark all the way
through to the menubuttons.

Fixes: #3027
5 years agoAdwaita: Small improvement for dropdown
Matthias Clasen [Sun, 9 Aug 2020 19:43:46 +0000 (15:43 -0400)]
Adwaita: Small improvement for dropdown

Put some space between the arrow and the text.
This was noticable in the new listbox2 demo.

5 years agogtk-demo: Cosmetic improvement to listbox2 demo
Matthias Clasen [Sun, 9 Aug 2020 19:43:01 +0000 (15:43 -0400)]
gtk-demo: Cosmetic improvement to listbox2 demo

Make the checkbutton and the check align vertically.

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 9 Aug 2020 19:39:35 +0000 (19:39 +0000)]
Update Basque translation

5 years agoUpdate German translation
Christian Kirbach [Sun, 9 Aug 2020 19:05:18 +0000 (19:05 +0000)]
Update German translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 9 Aug 2020 17:11:18 +0000 (17:11 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2422

5 years agogtk-demo: Group the listbox demos
Matthias Clasen [Sun, 9 Aug 2020 16:31:35 +0000 (12:31 -0400)]
gtk-demo: Group the listbox demos

5 years agogtk-demo: Add another listbox demo
Matthias Clasen [Sun, 9 Aug 2020 16:29:52 +0000 (12:29 -0400)]
gtk-demo: Add another listbox demo

This is a more typical listbox use.

5 years agoAdwaita: be careful with list separators
Matthias Clasen [Sun, 9 Aug 2020 16:01:08 +0000 (12:01 -0400)]
Adwaita: be careful with list separators

We only want the list .separators class to affect its
immediate children - otherwise, we end up with separators
in dropdowns that are places into button strips. As a side
benefit, restricting this to immediate children makes for
faster matching.

5 years agogtk-demo: Fix an indentation mishap
Matthias Clasen [Sun, 9 Aug 2020 15:14:28 +0000 (11:14 -0400)]
gtk-demo: Fix an indentation mishap

5 years agogtk-demo: Drop the modelbutton demo
Matthias Clasen [Sun, 9 Aug 2020 14:59:22 +0000 (10:59 -0400)]
gtk-demo: Drop the modelbutton demo

Not a public api, so shouldn't be featured in a demo.

5 years agogtk-demo: Improve filtering
Matthias Clasen [Sun, 9 Aug 2020 14:53:48 +0000 (10:53 -0400)]
gtk-demo: Improve filtering

Show sidebar rows if any parent matches. This lets one
search for "lists" and get just the subtree with all the
listview demos.

5 years agoUpdate Turkish translation
Emin Tufan Çetin [Sun, 9 Aug 2020 08:19:33 +0000 (08:19 +0000)]
Update Turkish translation

5 years agoMerge branch 'demo-polish' into 'master'
Matthias Clasen [Sun, 9 Aug 2020 04:28:31 +0000 (04:28 +0000)]
Merge branch 'demo-polish' into 'master'

Demo polish

See merge request GNOME/gtk!2420

5 years agogtk-demo: Make source formatting uniform
Matthias Clasen [Sun, 9 Aug 2020 04:03:43 +0000 (00:03 -0400)]
gtk-demo: Make source formatting uniform

Give the text view in the source tab the same
formatting as tabs we add for extra sources.

5 years agogtk-demo: Adapt hightlighting style for dark themes
Matthias Clasen [Sun, 9 Aug 2020 03:50:45 +0000 (23:50 -0400)]
gtk-demo: Adapt hightlighting style for dark themes

Switch to a highlight style that is readable with
dark background, if prefer-dark is set or we are
in HighContrastInverse.

5 years agogtk-demo: Cosmetics
Matthias Clasen [Sun, 9 Aug 2020 03:41:50 +0000 (23:41 -0400)]
gtk-demo: Cosmetics

5 years agogtk-demo: Make content views monospace
Matthias Clasen [Sun, 9 Aug 2020 03:41:05 +0000 (23:41 -0400)]
gtk-demo: Make content views monospace

That works better for code.

5 years agogtk-demo: Follow font settings again
Matthias Clasen [Sun, 9 Aug 2020 03:38:07 +0000 (23:38 -0400)]
gtk-demo: Follow font settings again

highlight puts font and size information into
its pango markup; strip that out to make our
text follow font settings again.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 23:08:44 +0000 (23:08 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3048

See merge request GNOME/gtk!2419

5 years agotextutil: Do a little better on retro X servers
Matthias Clasen [Sat, 8 Aug 2020 22:06:12 +0000 (18:06 -0400)]
textutil: Do a little better on retro X servers

When running on a non-composited, non-rgba X server
(such as Xnest), force the drag icons for text selections
to have a background, so we don't end up with black
text on black background.

Fixes: #3048
5 years agoinspector: Avoid a crash
Matthias Clasen [Sat, 8 Aug 2020 22:05:21 +0000 (18:05 -0400)]
inspector: Avoid a crash

I've seen the inspector crash when running on an
X server without an xsettings manager around. Better
be safe.

5 years agobookmarksmanager: Load bookmarks initially
Matthias Clasen [Sat, 8 Aug 2020 17:33:19 +0000 (13:33 -0400)]
bookmarksmanager: Load bookmarks initially

This was broken in 1e6171a4a700b0c16b2f.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 19:13:44 +0000 (19:13 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3037 and #3030

See merge request GNOME/gtk!2417

5 years agoRemove deprecation guards around gtk_window_present
Matthias Clasen [Sat, 8 Aug 2020 18:49:50 +0000 (14:49 -0400)]
Remove deprecation guards around gtk_window_present

It is not deprecated anymore.

5 years agogtk-demo: Fix iconscroll complex text
Matthias Clasen [Sat, 8 Aug 2020 18:38:18 +0000 (14:38 -0400)]
gtk-demo: Fix iconscroll complex text

We changed the way fontify works.
Adapt the iconscroll use.

5 years agogtk-demo: Fix iconscroll colors
Matthias Clasen [Sat, 8 Aug 2020 18:36:16 +0000 (14:36 -0400)]
gtk-demo: Fix iconscroll colors

We changed the way the color grid works.
Adapt the iconscroll use of it.

Fixes: #3030
5 years agoplacessidebar: Fix dnd cancellation
Matthias Clasen [Sat, 8 Aug 2020 18:25:46 +0000 (14:25 -0400)]
placessidebar: Fix dnd cancellation

When the drag is canceled by being dropped outside,
we get a ::cancel emission, that we want to handle
just like ::dnd-finished.

Fixes: #3037
5 years agoplacessidebar: Fix the bookmark drag icon
Matthias Clasen [Sat, 8 Aug 2020 18:24:45 +0000 (14:24 -0400)]
placessidebar: Fix the bookmark drag icon

Just use the widget; a paintable only works if the
widget it is based on actually gets drawn, the
clone we create here wasn't.

5 years agoplacessidebar: Fix bookmarks dnd
Matthias Clasen [Sat, 8 Aug 2020 17:47:23 +0000 (13:47 -0400)]
placessidebar: Fix bookmarks dnd

We were not handling drops of bookmarks correctly,
leading to criticals during DND.

Fixes: #3037
5 years agoplacessidebar: We're not a listbox anymore
Matthias Clasen [Sat, 8 Aug 2020 17:46:20 +0000 (13:46 -0400)]
placessidebar: We're not a listbox anymore

The placessidebar used to derive from GtkListBox,
but it doesn't anymore. There was one case leftover,
leading to criticals during bookmark DND.

5 years agobookmarksmanager: Load bookmarks initially
Matthias Clasen [Sat, 8 Aug 2020 17:33:19 +0000 (13:33 -0400)]
bookmarksmanager: Load bookmarks initially

This was broken in 1e6171a4a700b0c16b2f.

5 years agogtk-demo: Improve an error message
Matthias Clasen [Sat, 8 Aug 2020 16:51:31 +0000 (12:51 -0400)]
gtk-demo: Improve an error message

Be more helpful when we can't do syntax highlighting.

5 years agoMove roaring bitmaps code to gtk/roaring/ and add a README
Simon McVittie [Sat, 8 Aug 2020 15:17:59 +0000 (16:17 +0100)]
Move roaring bitmaps code to gtk/roaring/ and add a README

As suggested by Matthias Clasen on gtk!2408. This keeps the
Apache-licensed stuff together.

As per the discussion on gtk!2408 and gtk!2409, replacing this with
upstream CRoaring is specifically not supported by the GTK maintainers.

Signed-off-by: Simon McVittie <smcv@debian.org>
5 years agoInclude a copy of the Apache license
Simon McVittie [Fri, 7 Aug 2020 09:02:00 +0000 (10:02 +0100)]
Include a copy of the Apache license

4(a) requires giving recipients of the work a copy of the license, and
in any case it's best for source code distributions to be self-contained
(including the full text of all applicable licenses).

Signed-off-by: Simon McVittie <smcv@debian.org>
5 years agoroaring.[ch]: Add attribution and licensing information
Simon McVittie [Fri, 7 Aug 2020 09:00:55 +0000 (10:00 +0100)]
roaring.[ch]: Add attribution and licensing information

OS distributions that take copyright and licensing seriously will tend
to become concerned about source files that appear to come from a
third party and do not come with copyright/licensing information,
and stating that these files are modified is required by clause 4(b)
of the Apache license.

Signed-off-by: Simon McVittie <smcv@debian.org>
5 years agoMerge branch 'patch-1' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 17:05:25 +0000 (17:05 +0000)]
Merge branch 'patch-1' into 'master'

Correct typos in gtktextbtree.c

See merge request GNOME/gtk!2413

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 16:27:27 +0000 (16:27 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3047, #3034, #3038, and #3036

See merge request GNOME/gtk!2416

5 years agoMerge branch 'scroll-to-cursor' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 16:18:19 +0000 (16:18 +0000)]
Merge branch 'scroll-to-cursor' into 'master'

Scroll to cursor after canceling a selection

Closes #2960

See merge request GNOME/gtk!2321

5 years agobookmarksmanager: Ignore delete events
Matthias Clasen [Sat, 8 Aug 2020 14:41:57 +0000 (10:41 -0400)]
bookmarksmanager: Ignore delete events

Surpisingly, when a monitored file gets atomically replaced
with g_file_set_contents(), the file monitor reports a
DELETED event for the temp file, which is not the file
I'm monitoring.

Just ignore DELETED events.

Fixes: #3036
5 years agox11: Fix getting the primary monitor
Matthias Clasen [Sat, 8 Aug 2020 14:17:06 +0000 (10:17 -0400)]
x11: Fix getting the primary monitor

Actually return the primary monitor.

Fixes: #3038
5 years agolabel: Disable unavailable actions
Matthias Clasen [Sat, 8 Aug 2020 13:51:47 +0000 (09:51 -0400)]
label: Disable unavailable actions

Fixes: #3034
5 years agoprinteditor: Create the dialog every time
Matthias Clasen [Sat, 8 Aug 2020 13:38:35 +0000 (09:38 -0400)]
printeditor: Create the dialog every time

Trying to work around gtk_show_about_dialog() is
not worth it, just recreate the dialog from scratch.

5 years agowidgetfactory: Create the dialog every time
Matthias Clasen [Sat, 8 Aug 2020 13:36:05 +0000 (09:36 -0400)]
widgetfactory: Create the dialog every time

Trying to work around gtk_show_about_dialog() is
not worth it, just recreate the dialog from scratch.

Fixes: #3047
5 years agoabout dialog: remove unnecessary guards
Matthias Clasen [Sat, 8 Aug 2020 13:35:25 +0000 (09:35 -0400)]
about dialog: remove unnecessary guards

We decided to undeprecate gtk_window_present,
so no deprecation guards needed.

5 years agoMerge branch 'surface-size' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 14:44:52 +0000 (14:44 +0000)]
Merge branch 'surface-size' into 'master'

Surface size

See merge request GNOME/gtk!2415

5 years agoMerge branch 'wip/smcv/cloudprint-redundant-decls' into 'master'
Emmanuele Bassi [Sat, 8 Aug 2020 13:59:37 +0000 (13:59 +0000)]
Merge branch 'wip/smcv/cloudprint-redundant-decls' into 'master'

cloudprint: Fix redundant declarations

See merge request GNOME/gtk!2414

5 years agocloudprint: Fix redundant declarations
Simon McVittie [Sat, 8 Aug 2020 13:19:14 +0000 (14:19 +0100)]
cloudprint: Fix redundant declarations

G_DEFINE_DYNAMIC_TYPE declares these functions as static, and
-Werror=redundant-decls won't let us redeclare them. This is the
equivalent of 72c72d0b, but for a different backend.

Signed-off-by: Simon McVittie <smcv@debian.org>
5 years agosurface: Add width and height properties
Matthias Clasen [Sat, 8 Aug 2020 03:38:28 +0000 (23:38 -0400)]
surface: Add width and height properties

5 years agogdk: Move the ::popup-layout-changed signal
Matthias Clasen [Sat, 8 Aug 2020 03:26:01 +0000 (23:26 -0400)]
gdk: Move the ::popup-layout-changed signal

Move this signal from GdkSurface to GtkPopup,
where it belongs.

5 years agoUpdate POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 8 Aug 2020 11:07:18 +0000 (13:07 +0200)]
Update POTFILES.in and POTFILES.skip

5 years agoCorrect typos in gtktextbtree.c
Felix Yan [Sat, 8 Aug 2020 09:29:08 +0000 (09:29 +0000)]
Correct typos in gtktextbtree.c

5 years agoMerge branch 'activatable-colorswatch-style' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 03:09:30 +0000 (03:09 +0000)]
Merge branch 'activatable-colorswatch-style' into 'master'

Adwaita: Limit color swatch's hover effect to .activatable

See merge request GNOME/gtk!2411

5 years agoMerge branch 'wip/chergert/popover-offset' into 'master'
Matthias Clasen [Sat, 8 Aug 2020 02:41:04 +0000 (02:41 +0000)]
Merge branch 'wip/chergert/popover-offset' into 'master'

popover: allow setting popup layout offset

See merge request GNOME/gtk!2412

5 years agopopover: allow setting popup layout offset
Christian Hergert [Sat, 8 Aug 2020 00:06:08 +0000 (17:06 -0700)]
popover: allow setting popup layout offset

Currently there is no way to alter the offset of the popup when positioning
with GdkPopupLayout. This makes using the popup difficult for scenarios
like completion windows where you may need to offset the window by a given
amount for aligning text.

gtk_popover_set_offset() allows setting these values and are analagous to
the function of the same name for GdkPopupLayout.

5 years agocolorbutton: Remove .activatable style class from the color swatch
nana-4 [Fri, 7 Aug 2020 23:37:33 +0000 (08:37 +0900)]
colorbutton: Remove .activatable style class from the color swatch

The button itself is activatable, but its color swatch is not.

5 years agoAdwaita: Limit color swatch's hover effect to .activatable
nana-4 [Fri, 7 Aug 2020 23:33:38 +0000 (08:33 +0900)]
Adwaita: Limit color swatch's hover effect to .activatable

Non-activatable color swatches shouldn't have the interactive effect.

5 years agoUpdate Greek translation
Efstathios Iosifidis [Fri, 7 Aug 2020 20:41:27 +0000 (20:41 +0000)]
Update Greek translation

5 years agoMerge branch 'leak-fixes' into 'master'
Matthias Clasen [Fri, 7 Aug 2020 20:29:02 +0000 (20:29 +0000)]
Merge branch 'leak-fixes' into 'master'

Leak fixes

See merge request GNOME/gtk!2406

5 years agoMerge branch 'wip/chergert/fix-textview-yrange-invalidation' into 'master'
Matthias Clasen [Fri, 7 Aug 2020 20:17:22 +0000 (20:17 +0000)]
Merge branch 'wip/chergert/fix-textview-yrange-invalidation' into 'master'

linedisplaycache: improve invalidation with y_range

See merge request GNOME/gtk!2407

5 years agolinedisplaycache: improve invalidation with y_range
Christian Hergert [Fri, 7 Aug 2020 19:25:06 +0000 (12:25 -0700)]
linedisplaycache: improve invalidation with y_range

When we invalidate a y_range using the common pattern of y==0 and
old_height==new_height, we are generally invalidating the entire buffer.

This short-circuits that case to just invalidate the buffer in a faster
and more complete form. The problem here appears to be that we can't
always calculate the ranges properly to invalidate because validation
has not run far enough.

5 years agotextbuffer: Fix a leak
Matthias Clasen [Fri, 7 Aug 2020 19:26:11 +0000 (15:26 -0400)]
textbuffer: Fix a leak

gtk_text_buffer_insert_markup was leaking all the tags
that it inserts.

5 years agogtk-demo: Don't leak the markup
Matthias Clasen [Fri, 7 Aug 2020 19:19:33 +0000 (15:19 -0400)]
gtk-demo: Don't leak the markup

5 years agogtk-demo: Fix a memory leak
Matthias Clasen [Fri, 7 Aug 2020 19:15:18 +0000 (15:15 -0400)]
gtk-demo: Fix a memory leak

The colors demo was leaking a reference to its model.
This was showing up as crash when you manage to close
both the demo window and the main window while the
sorting is ongoing.

5 years agotoplevel: Revise docs wording a bit
Matthias Clasen [Fri, 7 Aug 2020 18:56:42 +0000 (14:56 -0400)]
toplevel: Revise docs wording a bit

The documentation of ::compute-size didn't quite
keep up with the changes in the MR. Fix it up.

5 years agoMerge branch 'matthias/fix-min-size' into 'master'
Matthias Clasen [Fri, 7 Aug 2020 18:46:24 +0000 (18:46 +0000)]
Merge branch 'matthias/fix-min-size' into 'master'

Matthias/fix min size

See merge request GNOME/gtk!2404

5 years agowindow: Don't set min_size > size
Matthias Clasen [Fri, 7 Aug 2020 17:55:02 +0000 (13:55 -0400)]
window: Don't set min_size > size

This fixes the failing reftest.

5 years agoMerge branch 'wip/jimmac/vte-bg-color' into 'master'
Jakub Steiner [Fri, 7 Aug 2020 17:16:14 +0000 (17:16 +0000)]
Merge branch 'wip/jimmac/vte-bg-color' into 'master'

Wip/jimmac/vte bg color

Closes vte#226

See merge request GNOME/gtk!2403

5 years agoAdwaita: add public color for text views
Jakub Steiner [Fri, 7 Aug 2020 16:58:32 +0000 (18:58 +0200)]
Adwaita: add public color for text views

- define @text_view_bg to complement @theme_text_color for high
  contrast legible text views.

Fixes https://gitlab.gnome.org/GNOME/vte/-/issues/226